package com.atguigu.spzx.product.mapper;

import com.atguigu.spzx.model.dto.h5.ProductSkuDto;
import com.atguigu.spzx.model.entity.product.ProductSku;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductSkuMapper {
    List<ProductSku> findProductSkusBySales();

    List<ProductSku> findPage(ProductSkuDto productSkuDto);

    ProductSku findProductSkuById(Long skuId);

    List<ProductSku> findProductSkusByProductId(Long productId);

    void updateSalesAndStockById(@Param("skuId") Long skuId, @Param("skuNum") Integer skuNum);
}
